package com.skt.exception;

public class AuthException extends BaseException {

    public AuthException(ErrorCode errorCode) {
        super(errorCode);
    }

    public AuthException(int code, String message) {
        super(code, message);
    }

    public AuthException(ErrorCode errorCode, String customMessage) {
        super(errorCode, customMessage);
    }

    // ========== 通用创建方法 ==========
    public static AuthException of(ErrorCode errorCode) {
        return new AuthException(errorCode);
    }

    public static AuthException of(ErrorCode errorCode, String customMessage) {
        return new AuthException(errorCode, customMessage);
    }

    public static AuthException of(int code, String message) {
        return new AuthException(code, message);
    }
}